GIT client 基本配置
1. 基本配置
CONFIGURATION MECHANISM
Git uses a simple text format to store customizations that are per repository and are per user. Such a configuration file may look
like this:
#
# A '#' or ';' character indicates a comment.
#
; core variables
[core]
; Don't trust file modes
filemode = false
; user identity
[user]
name = "Junio C Hamano"
email = "gitster@pobox.com"
Various commands read from the configuration file and adjust their operation accordingly. See git-config(1) for a list and more
details about the configuration mechanism.
1.1. 用户全局环境配置
[git@OEL7 ~]$ vi .gitconfig
[user]
name = aming
email = jikcheng@outlook.com
[alias]
st = status
ci = commit
co = checkout
br = branch
[color]
ui = true
1.1. Git-config使用
PATH=$PATH:$HOME/.local/bin:$HOME/bin:/usr/libexec/git-core/
或者使用git-config 来配置全局
git-config --global --edit
1.2. 开启颜色标识:
git config --global color.ui true
1.3. 编辑版本库的环境
git config -e
1.4. 编辑全局环境配置
git config -e –global
1.5. 打开整个系统的环境配置
git config -e –system